package com.yunxin.admin.system.domain.model.dict;

import java.util.Collection;
import java.util.List;

/**
 * @author zero°
 * @since 2023-07-11
 */
public interface DictTypeRepository {

    /**
     * 保存字典类型
     * @param dictType dictType
     * @return boolean
     */
    boolean saveDictType(DictType dictType);


    /**
     * 更新字典类型
     * @param dictType dictType
     * @return boolean
     */
    boolean updateDictType(DictType dictType);

    /**
     * 根据id集合删除
     * @param ids ids
     * @return boolean
     */
    boolean removeByIdList(Collection<Long> ids);

    /**
     * 根据id查询字典类型id
     * @param id id
     * @return DictType
     */
    DictType getDictTypeById(Long id);

    /**
     * 根据id集合查询字典类型code
     * @param ids ids
     * @return List<String>
     */
    List<String> listDictTypeCodeByIds(Collection<Long> ids);
}
